package com.chacha.framework.dasboard.tools;

import java.io.InputStream;

public class FileOperation {
private InputStream stream1, stream2;
	
	public FileOperation(){
	}

	public InputStream getReportFile(String reportName){
		
		stream1 = null;
		String path = "../../../../../../../../../" + "Reports/" + reportName;
		
		stream1 = FileOperation.class.getResourceAsStream(path);
        return stream1;
	}

	public InputStream getImagesObject(String url) {
		String path = "../../../../../../../../../" + "Images/" + url;
		stream2 = FileOperation.class.getResourceAsStream(path);
		return stream2;
	}
}
